package com.adkfp.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.adkfp.bean.ADKCtrlParamsBean;
import com.adkfp.dao.ADKCtrlParamsDaoMapper;
import com.adkfp.service.IADKCtrlParamsService;

/**
 * class name:ADKCtrlParamsService实现类 <BR>
 * class description: ADKCtrlParams表的增删改查 <BR>
 * Remark: <BR>
 * @version 1.00 2019年01月03日
 * @author JACK)jackwei
 */
@Service("aDKCtrlParamsService")
public class ADKCtrlParamsServiceImpl implements IADKCtrlParamsService {
	@Resource
	private ADKCtrlParamsDaoMapper aDKCtrlParamsMapper;

	/**
	 * @Override
	 * Method name: insert <BR>
	 * Description: 插入一条记录 <BR>
	 * Remark: <BR>
	 * @param bean  <BR>
	*/
	@Override
	@Transactional
	public void insert(ADKCtrlParamsBean bean) {
		aDKCtrlParamsMapper.insert(bean);
	}

	/**
	 * @Override
	 * Method name: delete <BR>
	 * Description: 删除一条记录 <BR>
	 * Remark: <BR>
	 * @param id  <BR>
	*/
	@Override
	@Transactional
	public void delete(Integer id) {
		aDKCtrlParamsMapper.delete(id);
	}

	/**
	 * @Override
	 * Method name: update <BR>
	 * Description: 更新一条记录 <BR>
	 * Remark: <BR>
	 * @param bean  <BR>
	*/
	@Override
	@Transactional
	public void update(ADKCtrlParamsBean bean) {
		aDKCtrlParamsMapper.update(bean);
	}

	/**
	 * @Override
	 * Method name: findById <BR>
	 * Description: 根据id获取一条记录 <BR>
	 * Remark: <BR>
	 * @param id
	 * @return  <BR>
	*/
	@Override
	public ADKCtrlParamsBean findById(Integer id) {
		return aDKCtrlParamsMapper.findById(id);
	}

	/**
	 * @Override
	 * Method name: findByCondition <BR>
	 * Description: 根据bean里面的条件(判空)查询所有记录 <BR>
	 * Remark: <BR>
	 * @param bean
	 * @return  <BR>
	*/
	@Override
	@Transactional
	public List<ADKCtrlParamsBean> findByCondition(ADKCtrlParamsBean bean) {
		return aDKCtrlParamsMapper.findByCondition(bean);
	}

	/**
	 * @Override
	 * Method name: findByConditionCount <BR>
	 * Description: 根据bean里面的条件(判空)查询所有记录条数 <BR>
	 * Remark: <BR>
	 * @param bean
	 * @return  <BR>
	*/
	@Override
	@Transactional
	public long findByConditionCount(ADKCtrlParamsBean bean) {
		return aDKCtrlParamsMapper.findByConditionCount(bean);
	}
}